﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Gollie.Controls
{
	public partial class MonthPickerControl : System.Web.UI.UserControl
	{
		public int SelectedMonth
		{
			get
			{
				string selectedValue = this.DropDownList1.SelectedValue;

				return Convert.ToInt32(selectedValue);
			}
			set
			{
				try
				{
					this.DropDownList1.SelectedValue = value.ToString();
				}
				catch (ArgumentOutOfRangeException)
				{
				}
			}
		}

		public string SelectedMonthText
		{
			get
			{
				return this.DropDownList1.SelectedItem.Text;
			}
		}
	}
}